.TH "QwtPicker" 3 "Tue Nov 20 2012" "Version 5.2.3" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPicker \- 
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_picker\&.h>\fP
.PP
Inherits \fBQwtEventPattern\fP\&.
.PP
Inherited by \fBQwtPlotPicker\fP\&.
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBDisplayMode\fP { \fBAlwaysOff\fP, \fBAlwaysOn\fP, \fBActiveOnly\fP }"
.br
.ti -1c
.RI "enum \fBRectSelectionType\fP { \fBCornerToCorner\fP =  64, \fBCenterToCorner\fP =  128, \fBCenterToRadius\fP =  256 }"
.br
.ti -1c
.RI "enum \fBResizeMode\fP { \fBStretch\fP, \fBKeepSize\fP }"
.br
.ti -1c
.RI "enum \fBRubberBand\fP { \fBNoRubberBand\fP =  0, \fBHLineRubberBand\fP, \fBVLineRubberBand\fP, \fBCrossRubberBand\fP, \fBRectRubberBand\fP, \fBEllipseRubberBand\fP, \fBPolygonRubberBand\fP, \fBUserRubberBand\fP =  100 }"
.br
.ti -1c
.RI "enum \fBSelectionMode\fP { \fBClickSelection\fP =  1024, \fBDragSelection\fP =  2048 }"
.br
.ti -1c
.RI "enum \fBSelectionType\fP { \fBNoSelection\fP =  0, \fBPointSelection\fP =  1, \fBRectSelection\fP =  2, \fBPolygonSelection\fP =  4 }"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBappended\fP (const QPoint &pos)"
.br
.ti -1c
.RI "void \fBchanged\fP (const QwtPolygon &pa)"
.br
.ti -1c
.RI "void \fBmoved\fP (const QPoint &pos)"
.br
.ti -1c
.RI "void \fBselected\fP (const QwtPolygon &pa)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQwtPicker\fP (QWidget *parent)"
.br
.ti -1c
.RI "\fBQwtPicker\fP (int \fBselectionFlags\fP, \fBRubberBand\fP \fBrubberBand\fP, \fBDisplayMode\fP \fBtrackerMode\fP, QWidget *)"
.br
.ti -1c
.RI "virtual \fB~QwtPicker\fP ()"
.br
.ti -1c
.RI "virtual void \fBdrawRubberBand\fP (QPainter *) const "
.br
.ti -1c
.RI "virtual void \fBdrawTracker\fP (QPainter *) const "
.br
.ti -1c
.RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)"
.br
.ti -1c
.RI "bool \fBisActive\fP () const "
.br
.ti -1c
.RI "bool \fBisEnabled\fP () const "
.br
.ti -1c
.RI "QWidget * \fBparentWidget\fP ()"
.br
.ti -1c
.RI "const QWidget * \fBparentWidget\fP () const "
.br
.ti -1c
.RI "virtual QRect \fBpickRect\fP () const "
.br
.ti -1c
.RI "\fBResizeMode\fP \fBresizeMode\fP () const "
.br
.ti -1c
.RI "\fBRubberBand\fP \fBrubberBand\fP () const "
.br
.ti -1c
.RI "QPen \fBrubberBandPen\fP () const "
.br
.ti -1c
.RI "const QwtPolygon & \fBselection\fP () const "
.br
.ti -1c
.RI "int \fBselectionFlags\fP () const "
.br
.ti -1c
.RI "virtual void \fBsetEnabled\fP (bool)"
.br
.ti -1c
.RI "virtual void \fBsetResizeMode\fP (\fBResizeMode\fP)"
.br
.ti -1c
.RI "virtual void \fBsetRubberBand\fP (\fBRubberBand\fP)"
.br
.ti -1c
.RI "virtual void \fBsetRubberBandPen\fP (const QPen &)"
.br
.ti -1c
.RI "virtual void \fBsetSelectionFlags\fP (int)"
.br
.ti -1c
.RI "virtual void \fBsetTrackerFont\fP (const QFont &)"
.br
.ti -1c
.RI "virtual void \fBsetTrackerMode\fP (\fBDisplayMode\fP)"
.br
.ti -1c
.RI "virtual void \fBsetTrackerPen\fP (const QPen &)"
.br
.ti -1c
.RI "QFont \fBtrackerFont\fP () const "
.br
.ti -1c
.RI "\fBDisplayMode\fP \fBtrackerMode\fP () const "
.br
.ti -1c
.RI "QPen \fBtrackerPen\fP () const "
.br
.ti -1c
.RI "QPoint \fBtrackerPosition\fP () const "
.br
.ti -1c
.RI "QRect \fBtrackerRect\fP (const QFont &) const "
.br
.ti -1c
.RI "virtual \fBQwtText\fP \fBtrackerText\fP (const QPoint &pos) const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual bool \fBaccept\fP (QwtPolygon &\fBselection\fP) const "
.br
.ti -1c
.RI "virtual void \fBappend\fP (const QPoint &)"
.br
.ti -1c
.RI "virtual void \fBbegin\fP ()"
.br
.ti -1c
.RI "virtual bool \fBend\fP (bool ok=true)"
.br
.ti -1c
.RI "virtual void \fBmove\fP (const QPoint &)"
.br
.ti -1c
.RI "virtual void \fBreset\fP ()"
.br
.ti -1c
.RI "const QWidget * \fBrubberBandWidget\fP () const "
.br
.ti -1c
.RI "virtual \fBQwtPickerMachine\fP * \fBstateMachine\fP (int) const "
.br
.ti -1c
.RI "virtual void \fBstretchSelection\fP (const QSize &oldSize, const QSize &newSize)"
.br
.ti -1c
.RI "const QWidget * \fBtrackerWidget\fP () const "
.br
.ti -1c
.RI "virtual void \fBtransition\fP (const QEvent *)"
.br
.ti -1c
.RI "virtual void \fBupdateDisplay\fP ()"
.br
.ti -1c
.RI "virtual void \fBwidgetKeyPressEvent\fP (QKeyEvent *)"
.br
.ti -1c
.RI "virtual void \fBwidgetKeyReleaseEvent\fP (QKeyEvent *)"
.br
.ti -1c
.RI "virtual void \fBwidgetLeaveEvent\fP (QEvent *)"
.br
.ti -1c
.RI "virtual void \fBwidgetMouseDoubleClickEvent\fP (QMouseEvent *)"
.br
.ti -1c
.RI "virtual void \fBwidgetMouseMoveEvent\fP (QMouseEvent *)"
.br
.ti -1c
.RI "virtual void \fBwidgetMousePressEvent\fP (QMouseEvent *)"
.br
.ti -1c
.RI "virtual void \fBwidgetMouseReleaseEvent\fP (QMouseEvent *)"
.br
.ti -1c
.RI "virtual void \fBwidgetWheelEvent\fP (QWheelEvent *)"
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBQwtPicker\fP provides selections on a widget\&. 

\fBQwtPicker\fP filters all mouse and keyboard events of a widget and translates them into an array of selected points\&. Depending on the \fBQwtPicker::SelectionType\fP the selection might be a single point, a rectangle or a polygon\&. The selection process is supported by optional rubberbands (rubberband selection) and position trackers\&.
.PP
\fBQwtPicker\fP is useful for widgets where the event handlers can't be overloaded, like for components of composite widgets\&. It offers alternative handlers for mouse and key events\&.
.PP
\fBExample \fP
.RS 4

.PP
.nf
#include <qwt_picker.h>

QwtPicker *picker = new QwtPicker(widget);
picker->setTrackerMode(QwtPicker::ActiveOnly);
connect(picker, SIGNAL(selected(const QwtPolygon &)), ...);

// emit the position of clicks on widget
picker->setSelectionFlags(QwtPicker::PointSelection | QwtPicker::ClickSelection);

    ...
    
// now select rectangles
picker->setSelectionFlags(QwtPicker::RectSelection | QwtPicker::DragSelection);
picker->setRubberBand(QwtPicker::RectRubberBand); 
.fi
.PP

.br
.RE
.PP
The selection process uses the commands \fBbegin()\fP, \fBappend()\fP, \fBmove()\fP and \fBend()\fP\&. \fBappend()\fP adds a new point to the selection, \fBmove()\fP changes the position of the latest point\&.
.PP
The commands are initiated from a small state machine (\fBQwtPickerMachine\fP) that translates mouse and key events\&. There are a couple of predefined state machines for point, rect and polygon selections\&. The \fBselectionFlags()\fP control which one should be used\&. It is possible to use other machines by overloading \fBstateMachine()\fP\&.
.PP
The picker is active (\fBisActive()\fP), between \fBbegin()\fP and \fBend()\fP\&. In active state the rubberband is displayed, and the tracker is visible in case of trackerMode is ActiveOnly or AlwaysOn\&.
.PP
The cursor can be moved using the arrow keys\&. All selections can be aborted using the abort key\&. (\fBQwtEventPattern::KeyPatternCode\fP)
.PP
\fBWarning:\fP
.RS 4
In case of QWidget::NoFocus the focus policy of the observed widget is set to QWidget::WheelFocus and mouse tracking will be manipulated for ClickSelection while the picker is active, or if \fBtrackerMode()\fP is AlwayOn\&. 
.RE
.PP

.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBQwtPicker::DisplayMode\fP"
.IP "\(bu" 2
AlwaysOff
.br
 Display never\&.
.IP "\(bu" 2
AlwaysOn
.br
 Display always\&.
.IP "\(bu" 2
ActiveOnly
.br
 Display only when the selection is active\&.
.PP
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker::setTrackerMode()\fP, \fBQwtPicker::trackerMode()\fP, \fBQwtPicker::isActive()\fP 
.RE
.PP

.SS "enum \fBQwtPicker::RectSelectionType\fP"

.PP
Selection subtype for RectSelection This enum type describes the type of rectangle selections\&. It can be or'd with \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP and passed to \fBQwtPicker::setSelectionFlags()\fP\&. .IP "\(bu" 2
CornerToCorner
.br
 The first and the second selected point are the corners of the rectangle\&.
.IP "\(bu" 2
CenterToCorner
.br
 The first point is the center, the second a corner of the rectangle\&.
.IP "\(bu" 2
CenterToRadius
.br
 The first point is the center of a quadrat, calculated by the maximum of the x- and y-distance\&.
.PP
.PP
The default value is CornerToCorner\&. 
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker::setSelectionFlags()\fP, \fBQwtPicker::selectionFlags()\fP 
.RE
.PP

.SS "enum \fBQwtPicker::ResizeMode\fP"
Controls what to do with the selected points of an active selection when the observed widget is resized\&.
.IP "\(bu" 2
Stretch
.br
 All points are scaled according to the new size,
.IP "\(bu" 2
KeepSize
.br
 All points remain unchanged\&.
.PP
.PP
The default value is Stretch\&. 
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker::setResizeMode()\fP, QwtPicker::resize() 
.RE
.PP

.SS "enum \fBQwtPicker::RubberBand\fP"
Rubberband style
.IP "\(bu" 2
NoRubberBand
.br
 No rubberband\&.
.IP "\(bu" 2
HLineRubberBand & PointSelection
.br
 A horizontal line\&.
.IP "\(bu" 2
VLineRubberBand & PointSelection
.br
 A vertical line\&.
.IP "\(bu" 2
CrossRubberBand & PointSelection
.br
 A horizontal and a vertical line\&.
.IP "\(bu" 2
RectRubberBand & RectSelection
.br
 A rectangle\&.
.IP "\(bu" 2
EllipseRubberBand & RectSelection
.br
 An ellipse\&.
.IP "\(bu" 2
PolygonRubberBand &PolygonSelection
.br
 A polygon\&.
.IP "\(bu" 2
UserRubberBand
.br
 Values >= UserRubberBand can be used to define additional rubber bands\&.
.PP
.PP
The default value is NoRubberBand\&. 
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker::setRubberBand()\fP, \fBQwtPicker::rubberBand()\fP 
.RE
.PP

.SS "enum \fBQwtPicker::SelectionMode\fP"
Values of this enum type or'd together with a SelectionType value identifies which state machine should be used for the selection\&.
.PP
The default value is ClickSelection\&. 
.PP
\fBSee also:\fP
.RS 4
\fBstateMachine()\fP 
.RE
.PP

.SS "enum \fBQwtPicker::SelectionType\fP"
This enum type describes the type of a selection\&. It can be or'd with \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP and passed to \fBQwtPicker::setSelectionFlags()\fP
.IP "\(bu" 2
NoSelection
.br
 Selection is disabled\&. Note this is different to the disabled state, as you might have a tracker\&.
.IP "\(bu" 2
PointSelection
.br
 Select a single point\&.
.IP "\(bu" 2
RectSelection
.br
 Select a rectangle\&.
.IP "\(bu" 2
PolygonSelection
.br
 Select a polygon\&.
.PP
.PP
The default value is NoSelection\&. 
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker::setSelectionFlags()\fP, \fBQwtPicker::selectionFlags()\fP 
.RE
.PP

.SH "Constructor & Destructor Documentation"
.PP 
.SS "QwtPicker::QwtPicker (QWidget *parent)\fC [explicit]\fP"
Constructor
.PP
Creates an picker that is enabled, but where selection flag is set to NoSelection, rubberband and tracker are disabled\&.
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP Parent widget, that will be observed 
.RE
.PP

.SS "QwtPicker::QwtPicker (intselectionFlags, \fBRubberBand\fPrubberBand, \fBDisplayMode\fPtrackerMode, QWidget *parent)\fC [explicit]\fP"
Constructor
.PP
\fBParameters:\fP
.RS 4
\fIselectionFlags\fP Or'd value of SelectionType, RectSelectionType and SelectionMode 
.br
\fIrubberBand\fP Rubberband style 
.br
\fItrackerMode\fP Tracker mode 
.br
\fIparent\fP Parent widget, that will be observed 
.RE
.PP

.SH "Member Function Documentation"
.PP 
.SS "bool QwtPicker::accept (QwtPolygon &selection) const\fC [protected]\fP, \fC [virtual]\fP"

.PP
Validate and fixup the selection\&. Accepts all selections unmodified
.PP
\fBParameters:\fP
.RS 4
\fIselection\fP Selection to validate and fixup 
.RE
.PP
\fBReturns:\fP
.RS 4
true, when accepted, false otherwise 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotZoomer\fP\&.
.SS "void QwtPicker::append (const QPoint &pos)\fC [protected]\fP, \fC [virtual]\fP"
Append a point to the selection and update rubberband and tracker\&. The \fBappended()\fP signal is emitted\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Additional point
.RE
.PP
\fBSee also:\fP
.RS 4
\fBisActive()\fP, \fBbegin()\fP, \fBend()\fP, \fBmove()\fP, \fBappended()\fP 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotPicker\fP\&.
.SS "void QwtPicker::appended (const QPoint &pos)\fC [signal]\fP"
A signal emitted when a point has been appended to the selection
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Position of the appended point\&. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBappend()\fP\&. \fBmoved()\fP 
.RE
.PP

.SS "void QwtPicker::begin ()\fC [protected]\fP, \fC [virtual]\fP"
Open a selection setting the state to active
.PP
\fBSee also:\fP
.RS 4
\fBisActive()\fP, \fBend()\fP, \fBappend()\fP, \fBmove()\fP 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotZoomer\fP\&.
.SS "void QwtPicker::changed (const QwtPolygon &pa)\fC [signal]\fP"
A signal emitted when the active selection has been changed\&. This might happen when the observed widget is resized\&.
.PP
\fBParameters:\fP
.RS 4
\fIpa\fP Changed selection 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBstretchSelection()\fP 
.RE
.PP

.SS "void QwtPicker::drawRubberBand (QPainter *painter) const\fC [virtual]\fP"
Draw a rubberband , depending on \fBrubberBand()\fP and \fBselectionFlags()\fP
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter, initialized with clip rect
.RE
.PP
\fBSee also:\fP
.RS 4
\fBrubberBand()\fP, \fBRubberBand\fP, \fBselectionFlags()\fP 
.RE
.PP

.SS "void QwtPicker::drawTracker (QPainter *painter) const\fC [virtual]\fP"
Draw the tracker
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtrackerRect()\fP, \fBtrackerText()\fP 
.RE
.PP

.SS "bool QwtPicker::end (boolok = \fCtrue\fP)\fC [protected]\fP, \fC [virtual]\fP"

.PP
Close a selection setting the state to inactive\&. The selection is validated and maybe fixed by \fBQwtPicker::accept()\fP\&.
.PP
\fBParameters:\fP
.RS 4
\fIok\fP If true, complete the selection and emit a selected signal otherwise discard the selection\&. 
.RE
.PP
\fBReturns:\fP
.RS 4
true if the selection is accepted, false otherwise 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBisActive()\fP, \fBbegin()\fP, \fBappend()\fP, \fBmove()\fP, \fBselected()\fP, \fBaccept()\fP 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotZoomer\fP, and \fBQwtPlotPicker\fP\&.
.SS "bool QwtPicker::eventFilter (QObject *o, QEvent *e)\fC [virtual]\fP"

.PP
Event filter\&. When \fBisEnabled()\fP == true all events of the observed widget are filtered\&. Mouse and keyboard events are translated into widgetMouse- and widgetKey- and widgetWheel-events\&. Paint and Resize events are handled to keep rubberband and tracker up to date\&.
.PP
\fBSee also:\fP
.RS 4
event(), \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
.RE
.PP

.SS "bool QwtPicker::isActive () const"
A picker is active between \fBbegin()\fP and \fBend()\fP\&. 
.PP
\fBReturns:\fP
.RS 4
true if the selection is active\&. 
.RE
.PP

.SS "bool QwtPicker::isEnabled () const"
\fBReturns:\fP
.RS 4
true when enabled, false otherwise 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetEnabled()\fP, \fBeventFilter()\fP 
.RE
.PP

.SS "void QwtPicker::move (const QPoint &pos)\fC [protected]\fP, \fC [virtual]\fP"
Move the last point of the selection The \fBmoved()\fP signal is emitted\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP New position 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBisActive()\fP, \fBbegin()\fP, \fBend()\fP, \fBappend()\fP 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotPicker\fP\&.
.SS "void QwtPicker::moved (const QPoint &pos)\fC [signal]\fP"
A signal emitted whenever the last appended point of the selection has been moved\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Position of the moved last point of the selection\&. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBmove()\fP, \fBappended()\fP 
.RE
.PP

.SS "QRect QwtPicker::pickRect () const\fC [virtual]\fP"
Find the area of the observed widget, where selection might happen\&.
.PP
\fBReturns:\fP
.RS 4
QFrame::contentsRect() if it is a QFrame, QWidget::rect() otherwise\&. 
.RE
.PP

.SS "void QwtPicker::reset ()\fC [protected]\fP, \fC [virtual]\fP"
Reset the state machine and terminate (end(false)) the selection 
.SS "\fBQwtPicker::ResizeMode\fP QwtPicker::resizeMode () const"
\fBReturns:\fP
.RS 4
Resize mode 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetResizeMode()\fP, \fBResizeMode\fP 
.RE
.PP

.SS "\fBQwtPicker::RubberBand\fP QwtPicker::rubberBand () const"
\fBReturns:\fP
.RS 4
Rubberband style 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetRubberBand()\fP, \fBRubberBand\fP, \fBrubberBandPen()\fP 
.RE
.PP

.SS "QPen QwtPicker::rubberBandPen () const"
\fBReturns:\fP
.RS 4
Rubberband pen 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetRubberBandPen()\fP, \fBrubberBand()\fP 
.RE
.PP

.SS "const QWidget * QwtPicker::rubberBandWidget () const\fC [protected]\fP"
\fBReturns:\fP
.RS 4
Widget displaying the rubberband 
.RE
.PP

.SS "void QwtPicker::selected (const QwtPolygon &pa)\fC [signal]\fP"
A signal emitting the selected points, at the end of a selection\&.
.PP
\fBParameters:\fP
.RS 4
\fIpa\fP Selected points 
.RE
.PP

.SS "int QwtPicker::selectionFlags () const"
\fBReturns:\fP
.RS 4
Selection flags, an Or'd value of SelectionType, RectSelectionType and SelectionMode\&. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetSelectionFlags()\fP, \fBSelectionType\fP, \fBRectSelectionType\fP, \fBSelectionMode\fP 
.RE
.PP

.SS "void QwtPicker::setEnabled (boolenabled)\fC [virtual]\fP"

.PP
En/disable the picker\&. When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed\&.
.PP
\fBParameters:\fP
.RS 4
\fIenabled\fP true or false 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBisEnabled()\fP, \fBeventFilter()\fP 
.RE
.PP

.SS "void QwtPicker::setResizeMode (\fBResizeMode\fPmode)\fC [virtual]\fP"

.PP
Set the resize mode\&. The resize mode controls what to do with the selected points of an active selection when the observed widget is resized\&.
.PP
Stretch means the points are scaled according to the new size, KeepSize means the points remain unchanged\&.
.PP
The default mode is Stretch\&.
.PP
\fBParameters:\fP
.RS 4
\fImode\fP Resize mode 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBresizeMode()\fP, \fBResizeMode\fP 
.RE
.PP

.SS "void QwtPicker::setRubberBand (\fBRubberBand\fPrubberBand)\fC [virtual]\fP"
Set the rubberband style
.PP
\fBParameters:\fP
.RS 4
\fIrubberBand\fP Rubberband style The default value is NoRubberBand\&.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBrubberBand()\fP, \fBRubberBand\fP, \fBsetRubberBandPen()\fP 
.RE
.PP

.SS "void QwtPicker::setRubberBandPen (const QPen &pen)\fC [virtual]\fP"
Set the pen for the rubberband
.PP
\fBParameters:\fP
.RS 4
\fIpen\fP Rubberband pen 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBrubberBandPen()\fP, \fBsetRubberBand()\fP 
.RE
.PP

.SS "void QwtPicker::setSelectionFlags (intflags)\fC [virtual]\fP"
Set the selection flags
.PP
\fBParameters:\fP
.RS 4
\fIflags\fP Or'd value of SelectionType, RectSelectionType and SelectionMode\&. The default value is NoSelection\&.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBselectionFlags()\fP, \fBSelectionType\fP, \fBRectSelectionType\fP, \fBSelectionMode\fP 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotZoomer\fP\&.
.SS "void QwtPicker::setTrackerFont (const QFont &font)\fC [virtual]\fP"
Set the font for the tracker
.PP
\fBParameters:\fP
.RS 4
\fIfont\fP Tracker font 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtrackerFont()\fP, \fBsetTrackerMode()\fP, \fBsetTrackerPen()\fP 
.RE
.PP

.SS "void QwtPicker::setTrackerMode (\fBDisplayMode\fPmode)\fC [virtual]\fP"

.PP
Set the display mode of the tracker\&. A tracker displays information about current position of the cursor as a string\&. The display mode controls if the tracker has to be displayed whenever the observed widget has focus and cursor (AlwaysOn), never (AlwaysOff), or only when the selection is active (ActiveOnly)\&.
.PP
\fBParameters:\fP
.RS 4
\fImode\fP Tracker display mode
.RE
.PP
\fBWarning:\fP
.RS 4
In case of AlwaysOn, mouseTracking will be enabled for the observed widget\&. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtrackerMode()\fP, \fBDisplayMode\fP 
.RE
.PP

.SS "void QwtPicker::setTrackerPen (const QPen &pen)\fC [virtual]\fP"
Set the pen for the tracker
.PP
\fBParameters:\fP
.RS 4
\fIpen\fP Tracker pen 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtrackerPen()\fP, \fBsetTrackerMode()\fP, \fBsetTrackerFont()\fP 
.RE
.PP

.SS "\fBQwtPickerMachine\fP * QwtPicker::stateMachine (intflags) const\fC [protected]\fP, \fC [virtual]\fP"
Create a state machine depending on the selection flags\&.
.PP
.IP "\(bu" 2
PointSelection | ClickSelection
.br
 QwtPickerClickPointMachine()
.IP "\(bu" 2
PointSelection | DragSelection
.br
 QwtPickerDragPointMachine()
.IP "\(bu" 2
RectSelection | ClickSelection
.br
 QwtPickerClickRectMachine()
.IP "\(bu" 2
RectSelection | DragSelection
.br
 QwtPickerDragRectMachine()
.IP "\(bu" 2
PolygonSelection
.br
 QwtPickerPolygonMachine()
.PP
.PP
\fBSee also:\fP
.RS 4
\fBsetSelectionFlags()\fP 
.RE
.PP

.SS "void QwtPicker::stretchSelection (const QSize &oldSize, const QSize &newSize)\fC [protected]\fP, \fC [virtual]\fP"
Scale the selection by the ratios of oldSize and newSize The \fBchanged()\fP signal is emitted\&.
.PP
\fBParameters:\fP
.RS 4
\fIoldSize\fP Previous size 
.br
\fInewSize\fP Current size
.RE
.PP
\fBSee also:\fP
.RS 4
\fBResizeMode\fP, \fBsetResizeMode()\fP, \fBresizeMode()\fP 
.RE
.PP

.SS "QFont QwtPicker::trackerFont () const"
\fBReturns:\fP
.RS 4
Tracker font 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetTrackerFont()\fP, \fBtrackerMode()\fP, \fBtrackerPen()\fP 
.RE
.PP

.SS "\fBQwtPicker::DisplayMode\fP QwtPicker::trackerMode () const"
\fBReturns:\fP
.RS 4
Tracker display mode 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetTrackerMode()\fP, \fBDisplayMode\fP 
.RE
.PP

.SS "QPen QwtPicker::trackerPen () const"
\fBReturns:\fP
.RS 4
Tracker pen 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetTrackerPen()\fP, \fBtrackerMode()\fP, \fBtrackerFont()\fP 
.RE
.PP

.SS "QPoint QwtPicker::trackerPosition () const"
\fBReturns:\fP
.RS 4
Current position of the tracker 
.RE
.PP

.SS "QRect QwtPicker::trackerRect (const QFont &font) const"
Calculate the bounding rectangle for the tracker text from the current position of the tracker
.PP
\fBParameters:\fP
.RS 4
\fIfont\fP Font of the tracker text 
.RE
.PP
\fBReturns:\fP
.RS 4
Bounding rectangle of the tracker text
.RE
.PP
\fBSee also:\fP
.RS 4
\fBtrackerPosition()\fP 
.RE
.PP

.SS "\fBQwtText\fP QwtPicker::trackerText (const QPoint &pos) const\fC [virtual]\fP"

.PP
Return the label for a position\&. In case of HLineRubberBand the label is the value of the y position, in case of VLineRubberBand the value of the x position\&. Otherwise the label contains x and y position separated by a ',' \&.
.PP
The format for the string conversion is '%d'\&.
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP Position 
.RE
.PP
\fBReturns:\fP
.RS 4
Converted position as string 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotPicker\fP\&.
.SS "const QWidget * QwtPicker::trackerWidget () const\fC [protected]\fP"
\fBReturns:\fP
.RS 4
Widget displaying the tracker text 
.RE
.PP

.SS "void QwtPicker::transition (const QEvent *e)\fC [protected]\fP, \fC [virtual]\fP"
Passes an event to the state machine and executes the resulting commands\&. Append and Move commands use the current position of the cursor (QCursor::pos())\&.
.PP
\fBParameters:\fP
.RS 4
\fIe\fP Event 
.RE
.PP

.SS "void QwtPicker::widgetKeyPressEvent (QKeyEvent *ke)\fC [protected]\fP, \fC [virtual]\fP"
Handle a key press event for the observed widget\&.
.PP
Selections can be completely done by the keyboard\&. The arrow keys move the cursor, the abort key aborts a selection\&. All other keys are handled by the current state machine\&.
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker\fP, \fBselectionFlags()\fP 
.PP
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyReleaseEvent()\fP, \fBstateMachine()\fP, \fBQwtEventPattern::KeyPatternCode\fP 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotZoomer\fP\&.
.SS "void QwtPicker::widgetKeyReleaseEvent (QKeyEvent *ke)\fC [protected]\fP, \fC [virtual]\fP"
Handle a key release event for the observed widget\&.
.PP
Passes the event to the state machine\&.
.PP
\fBSee also:\fP
.RS 4
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBstateMachine()\fP 
.RE
.PP

.SS "void QwtPicker::widgetLeaveEvent (QEvent *)\fC [protected]\fP, \fC [virtual]\fP"
Handle a leave event for the observed widget\&.
.PP
\fBSee also:\fP
.RS 4
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
.RE
.PP

.SS "void QwtPicker::widgetMouseDoubleClickEvent (QMouseEvent *me)\fC [protected]\fP, \fC [virtual]\fP"
Handle mouse double click event for the observed widget\&.
.PP
Empty implementation, does nothing\&.
.PP
\fBSee also:\fP
.RS 4
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
.RE
.PP

.SS "void QwtPicker::widgetMouseMoveEvent (QMouseEvent *e)\fC [protected]\fP, \fC [virtual]\fP"
Handle a mouse move event for the observed widget\&.
.PP
Move the last point of the selection in case of \fBisActive()\fP == true
.PP
\fBSee also:\fP
.RS 4
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
.RE
.PP

.SS "void QwtPicker::widgetMousePressEvent (QMouseEvent *e)\fC [protected]\fP, \fC [virtual]\fP"
Handle a mouse press event for the observed widget\&.
.PP
Begin and/or end a selection depending on the selection flags\&.
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker\fP, \fBselectionFlags()\fP 
.PP
\fBeventFilter()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
.RE
.PP

.SS "void QwtPicker::widgetMouseReleaseEvent (QMouseEvent *e)\fC [protected]\fP, \fC [virtual]\fP"
Handle a mouse relase event for the observed widget\&.
.PP
End a selection depending on the selection flags\&.
.PP
\fBSee also:\fP
.RS 4
\fBQwtPicker\fP, \fBselectionFlags()\fP 
.PP
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
.RE
.PP

.PP
Reimplemented in \fBQwtPlotZoomer\fP\&.
.SS "void QwtPicker::widgetWheelEvent (QWheelEvent *e)\fC [protected]\fP, \fC [virtual]\fP"
Handle a wheel event for the observed widget\&.
.PP
Move the last point of the selection in case of \fBisActive()\fP == true
.PP
\fBSee also:\fP
.RS 4
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
.RE
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
